package operations;

import computer.Memory;
import computer.ProgramCounter;

public class Jump implements Operation {
	int i;
	
	public Jump(int i) {
		this.i = i;
	}

	public void execute(Memory memory, ProgramCounter programCounter) {
		programCounter.set(i);
	}
	
	public String toString() {
		return "JMP " + i;
	}
}
